import request from "@/utils/request";
import { ParseData } from "@/utils/utils";

//获取行业报告列表分页
export const GetReportList = (data: any) => {
  return request({
    method: "GET",
    url: `/hangyebaogao?${ParseData(data)}`,
  });
};
// 删除行业报告列表
export const DeleteReport = (data: any) => {
  return request({
    method: "DELETE",
    url: `/hangyebaogao/${data.id}`,
  });
};
// 行业报告新增
export const AddReport = (data: any) => {
  return request({
    method: "POST",
    url: `/hangyebaogao`,
    data,
  });
};
// 行业报告编辑
export const EditReport = (data: any) => {
  return request({
    method: "PUT",
    url: `/hangyebaogao`,
    data,
  });
};
// 行业报告上架下架操作
export const ChangeReportStatus = (data: any) => {
  return request({
    method: "PUT",
    url: `/hangyebaogao/${data.id}`,
  });
};
// 行业报告编辑信息
export const GetReport = (data: any) => {
  return request({
    method: "GET",
    url: `/hangyebaogao/${data.id}`,
  });
};
